<% if @page_section.previous_changes.key?('position') %>
  <%= refresh_theme_preview %>
<% else %>
  <%= refresh_theme_preview(@page_section) %>
<% end %>
<% if @page_section.respond_to?(:link) %>
  <%= turbo_stream.update :linkable_type_dropdown do %>
    <%= render 'spree/admin/page_links/linkable_type_dropdown', page_link: @page_section.link, form_name: 'page_section[link_attributes]' %>
  <% end %>
<% end %>
